package com.five.admin.server;

import com.baomidou.mybatisplus.extension.service.IService;
import com.five.pojo.entity.Category;
import com.five.pojo.vo.CategoryTreeVo;

import java.util.List;

public interface CategoryService extends IService<Category> {

    /**
     * 查询分类树
     * @return
     */
    List<CategoryTreeVo> queryCategoryTree();


    /**
     * 删除分类
     */
    boolean deleteCategory(Long id);

    /**
     * 批量删除分类
     * @param ids
     * @return
     */
    String deleteCategoryBatch(List<Long> ids);
}
